#include <vector>
#include <iostream>

using namespace std;

void printVector(vector<int> v) {
	vector<int>::const_iterator it = v.begin();
	vector<int>::const_iterator end  = v.end();

	for( ; it != end; it++ ) {
		cout << *it << " ";
	}
}

int main() {
	vector<int> *v1 = new vector<int>;
	for( int i = 0; i < 10; i++ ) {
		v1->push_back(i * 2);
	}
	vector<int> v2 = *v1;
	delete v1;
	printVector(v2);

	return EXIT_SUCCESS;
}